]> dgit.raspbian.org Git - gnome-shell.git/commit
Use LC_TIME locale for strftime format string translations
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Oct 2014 12:38:13 +0000 (14:38 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Oct 2014 21:41:51 +0000 (23:41 +0200)
commiteb3fc7815e9b9de4dca77007a687aba820fc44b1
tree32a792ac8f7608f09d9e63d96d52d2d6c5cf279e
parent2f5a226bc240513eb2b802dbcf512b246cc875d8
Use LC_TIME locale for strftime format string translations

We commonly mark strftime format strings for translation to account
for date/time representations without an existing strftime shortcut
("Yesterday %H%p"). As those translations are looked up according to
the locale defined by LC_MESSAGES, while the conversion characters
themselves are resolved according to LC_TIME, the result can be
rather odd when mixing locales ("Den 27. January"). The correct
solution would be to install translations for format strings in
the LC_TIME catalogue and look them up with dcgettext(), but we
don't have the infrastructure to do that easily. Work around this
by adding a helper method that looks up a string in LC_MESSAGES
using the locale defined by LC_TIME and use that to translate
format strings, which has the same result.

https://bugzilla.gnome.org/show_bug.cgi?id=738640
js/ui/calendar.js
js/ui/components/telepathyClient.js
js/ui/dateMenu.js
js/ui/screenShield.js
src/shell-util.c
src/shell-util.h